Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Add cluster resource parent field to cluster resources.
Some cluster resources are created under some grouping format. The groups can be master group, clone group or simply a normal group.
In order to keep the flat nature of the cluster resources, I have added a
parent
field putting their parent group data.If they don't have any parent the field is set to nil.
We need this information in order to implement some new agent operations. Many operations will depend on knowing if the cluster is in maintenance or not. And in some cases, if specific resources of the cluster are in maintenance or not. Many times, the "parent" resource is set to maintenance, so we need to have this information.
For example to do SAP maintenance operations (like applying saptune): https://documentation.suse.com/sbp/sap-15/html/SLES4SAP-hana-sr-guide-PerfOpt-15/index.html#id-updating-sap-hana-seamless-sap-hana-maintenance
How was this tested?
UT